package com.shixun.milktea.mapper;

import com.shixun.milktea.entity.Address;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author : hzc
 * @date: 2022/7/1 - 07 - 01 - 19:21
 * @Description: com.shixun.milktea.mapper
 * @version: 1.0
 */
public interface AddressMapper {
    public Integer addOneAddress(@Param("address")Address address);

    List<Address> findAddressByConsumerId(@Param("consumerId") Integer consumerId);

    Integer updateOneAddress(@Param("address")Address address);

    Integer setDefaultStatus(@Param("consumerId") Integer consumerId);

    Integer updateStatusById(@Param("addressId")Integer addressId,@Param("addressStatus")String addressStatus);
}
